package com.achievement.project.system.scoreForStu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.achievement.project.system.scoreForStu.mapper.scoreForStuMapper;
import com.achievement.project.system.scoreForStu.domain.scoreForStu;
import com.achievement.project.system.scoreForStu.service.IscoreForStuService;
import com.achievement.common.utils.text.Convert;

/**
 * 班级成绩Service业务层处理
 *
 * @author zkai
 * @date 2021-05-04
 */
@Service
public class scoreForStuServiceImpl implements IscoreForStuService
{
    @Autowired
    private scoreForStuMapper scoreForStuMapper;

    /**
     * 查询班级成绩
     *
     * @param id 班级成绩ID
     * @return 班级成绩
     */
    @Override
    public scoreForStu selectscoreForStuById(Long id)
    {
        return scoreForStuMapper.selectscoreForStuById(id);
    }

    /**
     * 查询班级成绩列表
     *
     * @param scoreForStu 班级成绩
     * @return 班级成绩
     */
    @Override
    public List<scoreForStu> selectscoreForStuList(scoreForStu scoreForStu)
    {
        return scoreForStuMapper.selectscoreForStuList(scoreForStu);
    }

    /**
     * 新增班级成绩
     *
     * @param scoreForStu 班级成绩
     * @return 结果
     */
    @Override
    public int insertscoreForStu(scoreForStu scoreForStu)
    {
        return scoreForStuMapper.insertscoreForStu(scoreForStu);
    }

    /**
     * 修改班级成绩
     *
     * @param scoreForStu 班级成绩
     * @return 结果
     */
    @Override
    public int updatescoreForStu(scoreForStu scoreForStu)
    {
        return scoreForStuMapper.updatescoreForStu(scoreForStu);
    }

    /**
     * 删除班级成绩对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletescoreForStuByIds(String ids)
    {
        return scoreForStuMapper.deletescoreForStuByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除班级成绩信息
     *
     * @param id 班级成绩ID
     * @return 结果
     */
    @Override
    public int deletescoreForStuById(Long id)
    {
        return scoreForStuMapper.deletescoreForStuById(id);
    }
}
